Skip to content

Define print() function and raw_input for Python 3#32

Merged
dsjoerg merged 5 commits into
ggtracker:upstreamfrom
cclauss:patch-1
Aug 22, 2017
Merged

Define print() function and raw_input for Python 3#32
dsjoerg merged 5 commits into
ggtracker:upstreamfrom
cclauss:patch-1

Conversation

@cclauss

@cclauss cclauss commented Aug 22, 2017

Copy link
Copy Markdown
Collaborator

No description provided.

@dsjoerg

dsjoerg commented Aug 22, 2017

Copy link
Copy Markdown
Member

Ha, I never knew until today how Python 2 handled print('foo'). Turns out it's still a statement, just a statement that takes a tuple.

@dsjoerg dsjoerg merged commit 211e23c into ggtracker:upstream Aug 22, 2017
@cclauss cclauss deleted the patch-1 branch August 22, 2017 21:24
@cclauss

cclauss commented Aug 22, 2017

Copy link
Copy Markdown
Collaborator Author

from __future__ import print_function will force Python 2 to work exactly like Python 3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants